﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucTinTuc.ascx.cs" Inherits="STT.Admin.WebForms.ucTinTuc" %>

<div id="content-header">
    <div id="breadcrumb">
        <a href="../Default.aspx" class="tip-bottom" data-original-title="Về bảng điều khiển">
            <i class="icon-home"></i>Trang chủ
        </a>
        <a href="../Admin/Default.aspx?" class="current">Quản lý khóa học</a>
    </div>
</div>

<div class="widget-box">
    <div class="widget-title">
        <span class="icon"><i class="icon-th"></i></span>
        <h5>Danh sách các khóa học</h5>

        <div id="search">
            <asp:TextBox ID="txtTimKiem" runat="server" placeholder="Nhập từ tìm kiếm..."></asp:TextBox>
            <button class="tip-left" data-original-title="Tìm kiếm">
                <asp:LinkButton ID="lbTimKiem" runat="server">            
                <i class="icon-search "></i>
                </asp:LinkButton>
            </button>
        </div>
    </div>

    <div class="widget-content nopadding">
        <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper" role="grid">
            <asp:GridView ID="gvKhoaHoc" runat="server" CssClass="table table-bordered"
                AutoGenerateColumns="False" DataKeyNames="MaKhoaHoc"
                OnRowCancelingEdit="gvKhoaHoc_RowCancelingEdit"
                OnRowDataBound="gvKhoaHoc_RowDataBound" OnRowDeleting="gvKhoaHoc_RowDeleting"
                OnRowEditing="gvKhoaHoc_RowEditing" OnRowUpdating="gvKhoaHoc_RowUpdating"
                OnSelectedIndexChanging="gvKhoaHoc_SelectedIndexChanging">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:CheckBox ID="cbChonTat" runat="server" />
                        </ItemTemplate>
                        <ItemStyle Width="10px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:BoundField DataField="MaKhoaHoc" HeaderText="Mã khóa học"
                        InsertVisible="False" ReadOnly="True" SortExpression="MaKhoaHoc"
                        ItemStyle-CssClass="span1">
                        <ItemStyle CssClass="span1"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="TenKhoaHoc" HeaderText="Tên khóa học"
                        SortExpression="TenKhoaHoc" ItemStyle-CssClass="span2">
                        <ItemStyle CssClass="span2"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="DiaDiemHoc" HeaderText="Địa điểm học"
                        SortExpression="DiaDiemHoc" ItemStyle-CssClass="span2">
                        <ItemStyle CssClass="span2"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="ThoiGianBatDau" HeaderText="Thời gian bắt đầu"
                        SortExpression="ThoiGianBatDau" ItemStyle-CssClass="span1">
                        <ItemStyle CssClass="span1"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="ThoiGianKetThuc" HeaderText="Thời gian kết thúc"
                        SortExpression="ThoiGianKetThuc" ItemStyle-CssClass="span1">
                        <ItemStyle CssClass="span1"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="NamHoc" HeaderText="Năm học"
                        SortExpression="NamHoc" ItemStyle-CssClass="span1">
                        <ItemStyle CssClass="span1"></ItemStyle>
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="Chi tiết" ShowHeader="False" ItemStyle-CssClass="span1">
                        <ItemTemplate>
                            <asp:Label ID="lblChiTiet" runat="server" data-original-title="Tooltip <br/> in left"
                                Text="Chi tiết" CssClass="tip-left"></asp:Label>
                        </ItemTemplate>

                        <ItemStyle CssClass="span1"></ItemStyle>
                    </asp:TemplateField>
                    <asp:CommandField HeaderText="Sửa" SelectText="Sửa" ShowSelectButton="True"
                        ItemStyle-CssClass="span1">
                        <ItemStyle CssClass="span1"></ItemStyle>
                    </asp:CommandField>
                    <asp:CommandField DeleteText="Xóa" HeaderText="Xóa" ShowDeleteButton="True"
                        ItemStyle-CssClass="span1">
                        <ItemStyle CssClass="span1"></ItemStyle>
                    </asp:CommandField>
                </Columns>
            </asp:GridView>

            <div class="fg-toolbar ui-toolbar ui-widget-header ui-corner-bl">
                <%--<a href="#myModal" data-toggle="modal" class="btn btn-info">Thêm mới</a>--%>
                <asp:LinkButton ID="lbChonTat" runat="server" CssClass="btn">Chọn tất</asp:LinkButton>
                <asp:LinkButton ID="lbXoaTat" runat="server" CssClass="btn">Xóa tất</asp:LinkButton>

                <div class="btn-group">
                    <a href="#themMoi" data-toggle="modal">
                        <button class="btn">
                            Thêm mới
                        </button>
                    </a>
                    <button data-toggle="dropdown" class="btn dropdown-toggle">
                        <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="#">Thêm từ file Excel</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                    </ul>
                </div>

                <div class="btn-group">
                    <button class="btn">
                        <asp:LinkButton ID="lbXuatDuLieu" runat="server" OnClick="lbXuatDuLieu_Click">Xuất dữ liệu</asp:LinkButton>
                    </button>
                    <button data-toggle="dropdown" class="btn dropdown-toggle">
                        <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="#">Xuất Excel</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                    </ul>
                </div>

                <div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers"
                    id="DataTables_Table_0_paginate">
                    <a tabindex="0" class="first ui-corner-tl ui-corner-bl fg-button ui-button ui-state-default ui-state-disabled"
                        id="DataTables_Table_0_first">First</a>
                    <span><a tabindex="0" class="fg-button ui-button ui-state-default ui-state-disabled">
                        1</a><a
                            tabindex="0" class="fg-button ui-button ui-state-default">2</a><a tabindex="0" class="fg-button ui-button ui-state-default">3</a><a
                                tabindex="0" class="fg-button ui-button ui-state-default">4</a><a tabindex="0" class="fg-button ui-button ui-state-default">5</a>

                    </span><a
                        tabindex="0" class="last ui-corner-tr ui-corner-br fg-button ui-button ui-state-default"
                        id="DataTables_Table_0_last">Last</a>
                </div>
            </div>
        </div>
    </div>
</div>

<div id="validationcontrol">
    <div id="themMoi" class="modal hide" aria-hidden="true" style="display: none;">
        <div class="modal-header">
            <button data-dismiss="modal" class="close" type="button">×</button>
            <h3>Thêm lớp mới</h3>
        </div>
        <div class="modal-body">
            <div class="control-group">
                <label class="control-label">Tên khóa học: </label>
                <div class="controls">
                    <asp:TextBox ID="txtTenKhoaHoc" runat="server" TextMode="SingleLine"></asp:TextBox>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">Nội dung: </label>
                <div class="controls">
                    <%--<input type="text" name="number" id="number"/>--%>
                    <asp:TextBox ID="txtNoiDung" runat="server"></asp:TextBox>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">Thời gian: </label>
                <div class="controls">
                    <asp:TextBox ID="txtThoiGian" runat="server" TextMode="Date"></asp:TextBox>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">Kinh phí: </label>
                <div class="controls">
                    <asp:TextBox ID="txtKinhPhi" runat="server"></asp:TextBox>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <asp:Button ID="btThemMoi" runat="server" CssClass="btn btn-primary" Text="Thêm mới"
                OnClick="btThemMoi_Click" />
            <a data-dismiss="modal" class="btn" href="#">Hủy</a>
        </div>
    </div>
</div>
